import numpy as np
import cv2


img = cv2.imread("picture.jpg")
cv2.imshow("demo", img)
# cv2.waitKey()


im = np.array(img)
im[:, :, 0] = im[:, :, 0]*0.3
im[:, :, 1] = im[:, :, 1]*0.59
im[:, :, 2] = im[:, :, 2]*0.11
im = np.max(im, axis=2)

# print(img.shape)
# print(im.shape)

cv2.imshow("demo1", im)
# cv2.imshimshowow("demo_gray", img)
cv2.waitKey()
